package com.lianniu.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianniu.web.base.BaseResult;
import com.lianniu.web.util.VerifyCodeUtil;

@Controller
@RequestMapping("rest")
public class VerifyCodeController {
	
	@RequestMapping(value = { "verify/sendCode" }, method = RequestMethod.POST)
	public @ResponseBody BaseResult sendCode(String phone) {
		BaseResult result = VerifyCodeUtil.sendMsgYun(phone);
		if (result.getRetCode().equals("0000")) {
			return result;
		} else {
			return result;
		}

	}

}
